package com.xayy.health.core.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 自定义异常
 * @author houchengwei
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class HealthException extends RuntimeException{
    private String msg;
    private int code = 500;

    public HealthException(String msg) {
        super(msg);
        this.msg = msg;
    }
}
